<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let ary = [1, 2, 3];
      console.log(...ary); // 将数组或者对象转为 逗号分割的参数序列
      //扩展运算符 合并数组
      let ary1 = [1, 2, 3];
      let ary2 = [4, 5, 6];
      //   let ary3 = [...ary1, ...ary2];
      // .push 追加
      ary1.push(...ary2);
      console.log(ary1);
    </script>
  </body>
</html>
